package com.yggdrasil.world;

import java.util.Random;

public class NPC extends Character {
	
	public NPC(int x, int y, int hp) {
		this.x = x;
		this.y = y;
		this.hp = hp;
		z = 10;
	}

	public void randomMovement() {
		Random r = new Random();
		if (r.nextInt(2) == 1) {
			if (r.nextInt(2) == 1)
				addToX(1);
			else
				addToX(-1);
		}
		if (r.nextInt(2) == 1) {
			if (r.nextInt(2) == 1)
				addToY(1);
			else
				addToY(-1);
		}
	}

}
